package cn.edu.dutir.corpus.cwt;

import com.aliasi.corpus.LineParser;
import com.aliasi.corpus.ObjectHandler;

public class TWURL2DocnoParser<H extends ObjectHandler<String>> extends
		LineParser<H> {

	@Override
	protected void parseLine(String line, int lineNumber) {
		try {
			getHandler().handle(line);
		} catch (IllegalArgumentException e) {
			throw new IllegalArgumentException(e.getMessage() + " at line "
					+ lineNumber);
		}
	}
}
